package cn.cmeizu.spring6.javai18n;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.Date;
import java.util.Locale;

/**
 * @author cmeizu
 * @date 2023/2/19 18:21
 */
class ResourceI18nTestXml {
  public static void main(String[] args) {
    ApplicationContext context = new ClassPathXmlApplicationContext("bean.xml");

    Object[] objs = {"cmeizu", new Date().toString()};
    String value = context.getMessage("www.cmeizu.cn", objs, Locale.CHINA);
    System.out.println("value = " + value);
  }

}